package cn.com.zero.db.vo;

import cn.com.zero.base.vo.BaseVO;

import java.io.Serializable;
import java.util.List;

/**
 * @author liuxh
 * @version 1.0.0
 * @Description 返回的分页信息
 * @createTime 2022/7/26 15:41
 */
public class PageVO<E> extends BaseVO{
    /**
     * 总条数
     */
    private long total;

    /**
     * 总页数
     */
    private int pages;

    /**
     * 结果集
     */
    private List<E> list;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public List<E> getList() {
        return list;
    }

    public void setList(List<E> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
